package cn.wgx.modules.sys.entity;

import cn.wgx.modules.base.entity.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * Created By MBG-GUI-EXTENSION https://github.com/spawpaw/mybatis-generator-gui-extension
 * Description:
 * 职位表
 *
 * @author
 */
public class SysDuty extends BaseEntity implements Serializable {

    /**
     * 更新时间
     *
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    private Date updateDate;

    /**
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    private Integer duty_id;

    /**
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    private String dutyKey;

    /**
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    private static final long serialVersionUID = 1L;

    /**
     * 创建人
     *
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    private Integer createUserId;

    /**
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    private Integer sort;

    /**
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    private String remark;

    /**
     * 更新人
     *
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    private Integer updateUserId;

    /**
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    private String dutyName;

    /**
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    private Integer pid;

    /**
     * 创建时间
     *
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    private Date createDate;

    /**
     * This method returns the value of the database column education..sys_duty.duty_id
     *
     * @return the value of education..sys_duty.duty_id
     *
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    public Integer getDuty_id() {
        return duty_id;
    }

    /**
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    public SysDuty withPid(Integer pid) {
        this.setPid(pid);
        return this;
    }

    /**
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    public SysDuty withSort(Integer sort) {
        this.setSort(sort);
        return this;
    }

    /**
     * This method returns the value of the database column education..sys_duty.pid
     *
     * @return the value of education..sys_duty.pid
     *
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    public Integer getPid() {
        return pid;
    }

    /**
     * This method returns the value of the database column education..sys_duty.createDate
     *
     * @return the value of education..sys_duty.createDate
     *
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    public Date getCreateDate() {
        return createDate;
    }

    /**
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    public SysDuty withUpdateDate(Date updateDate) {
        this.setUpdateDate(updateDate);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_duty.createDate
     *
     * @param createDate the value for education..sys_duty.createDate
     *
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * This method returns the value of the database column education..sys_duty.sort
     *
     * @return the value of education..sys_duty.sort
     *
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    public Integer getSort() {
        return sort;
    }

    /**
     * This method returns the value of the database column education..sys_duty.remark
     *
     * @return the value of education..sys_duty.remark
     *
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    public String getRemark() {
        return remark;
    }

    /**
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    public SysDuty withRemark(String remark) {
        this.setRemark(remark);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_duty.createUserId
     *
     * @param createUserId the value for education..sys_duty.createUserId
     *
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    public void setCreateUserId(Integer createUserId) {
        this.createUserId = createUserId;
    }

    /**
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    public SysDuty withDuty_id(Integer duty_id) {
        this.setDuty_id(duty_id);
        return this;
    }

    /**
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    public SysDuty withDutyName(String dutyName) {
        this.setDutyName(dutyName);
        return this;
    }

    /**
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    public SysDuty withDutyKey(String dutyKey) {
        this.setDutyKey(dutyKey);
        return this;
    }

    /**
     * This method returns the value of the database column education..sys_duty.updateUserId
     *
     * @return the value of education..sys_duty.updateUserId
     *
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    public Integer getUpdateUserId() {
        return updateUserId;
    }

    /**
     * This method sets the value of the database column education..sys_duty.pid
     *
     * @param pid the value for education..sys_duty.pid
     *
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    public void setPid(Integer pid) {
        this.pid = pid;
    }

    /**
     * This method sets the value of the database column education..sys_duty.sort
     *
     * @param sort the value for education..sys_duty.sort
     *
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    public void setSort(Integer sort) {
        this.sort = sort;
    }

    /**
     * This method sets the value of the database column education..sys_duty.dutyKey
     *
     * @param dutyKey the value for education..sys_duty.dutyKey
     *
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    public void setDutyKey(String dutyKey) {
        this.dutyKey = dutyKey;
    }

    /**
     * This method returns the value of the database column education..sys_duty.dutyName
     *
     * @return the value of education..sys_duty.dutyName
     *
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    public String getDutyName() {
        return dutyName;
    }

    /**
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", duty_id=").append(duty_id);
        sb.append(", pid=").append(pid);
        sb.append(", dutyName=").append(dutyName);
        sb.append(", dutyKey=").append(dutyKey);
        sb.append(", sort=").append(sort);
        sb.append(", remark=").append(remark);
        sb.append(", createUserId=").append(createUserId);
        sb.append(", createDate=").append(createDate);
        sb.append(", updateUserId=").append(updateUserId);
        sb.append(", updateDate=").append(updateDate);
        sb.append("]");
        return sb.toString();
    }

    /**
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    public SysDuty withCreateUserId(Integer createUserId) {
        this.setCreateUserId(createUserId);
        return this;
    }

    /**
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SysDuty other = (SysDuty) that;
        return (this.getDuty_id() == null ? other.getDuty_id() == null : this.getDuty_id().equals(other.getDuty_id())) && (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid())) && (this.getDutyName() == null ? other.getDutyName() == null : this.getDutyName().equals(other.getDutyName())) && (this.getDutyKey() == null ? other.getDutyKey() == null : this.getDutyKey().equals(other.getDutyKey())) && (this.getSort() == null ? other.getSort() == null : this.getSort().equals(other.getSort())) && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark())) && (this.getCreateUserId() == null ? other.getCreateUserId() == null : this.getCreateUserId().equals(other.getCreateUserId())) && (this.getCreateDate() == null ? other.getCreateDate() == null : this.getCreateDate().equals(other.getCreateDate())) && (this.getUpdateUserId() == null ? other.getUpdateUserId() == null : this.getUpdateUserId().equals(other.getUpdateUserId())) && (this.getUpdateDate() == null ? other.getUpdateDate() == null : this.getUpdateDate().equals(other.getUpdateDate()));
    }

    /**
     * This method returns the value of the database column education..sys_duty.dutyKey
     *
     * @return the value of education..sys_duty.dutyKey
     *
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    public String getDutyKey() {
        return dutyKey;
    }

    /**
     * This method sets the value of the database column education..sys_duty.updateDate
     *
     * @param updateDate the value for education..sys_duty.updateDate
     *
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    /**
     * This method sets the value of the database column education..sys_duty.updateUserId
     *
     * @param updateUserId the value for education..sys_duty.updateUserId
     *
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    public void setUpdateUserId(Integer updateUserId) {
        this.updateUserId = updateUserId;
    }

    /**
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    public SysDuty withCreateDate(Date createDate) {
        this.setCreateDate(createDate);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_duty.remark
     *
     * @param remark the value for education..sys_duty.remark
     *
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * This method sets the value of the database column education..sys_duty.duty_id
     *
     * @param duty_id the value for education..sys_duty.duty_id
     *
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    public void setDuty_id(Integer duty_id) {
        this.duty_id = duty_id;
    }

    /**
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDuty_id() == null) ? 0 : getDuty_id().hashCode());
        result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode());
        result = prime * result + ((getDutyName() == null) ? 0 : getDutyName().hashCode());
        result = prime * result + ((getDutyKey() == null) ? 0 : getDutyKey().hashCode());
        result = prime * result + ((getSort() == null) ? 0 : getSort().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getCreateUserId() == null) ? 0 : getCreateUserId().hashCode());
        result = prime * result + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode());
        result = prime * result + ((getUpdateUserId() == null) ? 0 : getUpdateUserId().hashCode());
        result = prime * result + ((getUpdateDate() == null) ? 0 : getUpdateDate().hashCode());
        return result;
    }

    /**
     * This method sets the value of the database column education..sys_duty.dutyName
     *
     * @param dutyName the value for education..sys_duty.dutyName
     *
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    public void setDutyName(String dutyName) {
        this.dutyName = dutyName;
    }

    /**
     * This method returns the value of the database column education..sys_duty.updateDate
     *
     * @return the value of education..sys_duty.updateDate
     *
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    public Date getUpdateDate() {
        return updateDate;
    }

    /**
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    public SysDuty withUpdateUserId(Integer updateUserId) {
        this.setUpdateUserId(updateUserId);
        return this;
    }

    /**
     * This method returns the value of the database column education..sys_duty.createUserId
     *
     * @return the value of education..sys_duty.createUserId
     *
     * @mbg.generated Wed Feb 19 16:52:33 CST 2020
     */
    public Integer getCreateUserId() {
        return createUserId;
    }
}
